Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

specify language #22

Merged
merged 2 commits into from
Oct 6, 2024
Merged

specify language #22

merged 2 commits into from
Oct 6, 2024

Conversation

JonPurvis
Copy link
Owner

@JonPurvis JonPurvis commented Oct 6, 2024

This PR adds the ability to be able to specify a language. By default, the check will loop over any files with the profanities directory, but personally, I really only care about words in the en.php file. I've had a couple of instances where words within words are picked up within other language files. By specifying en as the language, I can be sure that my codebase is only getting scanned against the correct file.

My use case is one of my applications references "Customer". The word "Customer" contains "Cu" which is listed as profane in the pt_BR.php file because in Portuguese, it means "ass".

@JonPurvis JonPurvis merged commit d661049 into master Oct 6, 2024
28 checks passed
@JonPurvis JonPurvis deleted the specify-language branch October 6, 2024 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant